package com.ht.service.impl;

import com.ht.domain.bo.TbDiagnoseOrderBO;
import com.ht.domain.po.TbDiagnoseOrder;
import com.ht.mapper.DiagnoseOrderMapper;
import com.ht.mapper.TbDoctorMapper;
import com.ht.service.DiagnoseOrderService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DiagnoseOrderServiceImpl implements DiagnoseOrderService {
    @Autowired
    private DiagnoseOrderMapper diagnoseOrderMapper;
    @Autowired
    private TbDoctorMapper tbDoctorMapper;

    @Override
    public void outpatientRegistered(TbDiagnoseOrderBO bo) {
        TbDiagnoseOrder po = new TbDiagnoseOrder();
        BeanUtils.copyProperties(bo,po);
        int i = diagnoseOrderMapper.insert(po);
    }
}
